﻿using FluentValidation.Attributes;
using Nop.Admin.Validators.Directory;
using Nop.Web.Framework.Mvc;
using System.Collections.Generic;
using System.Web.Mvc;

namespace Nop.Admin.Models.Directory
{
	public class DepartmentListModel
	{
		public int SearchPId { get; set; }
		public string SearchName { get; set; }
	}
	[Validator(typeof(DepartmentValidator))]
	public class DepartmentModel : BaseNopEntityModel
	{
		public DepartmentModel()
		{
			this.AvailableDepartments = new List<SelectListItem>();
		}
		public int PId { get; set; }
		public string Name { get; set; }

		public string Breadcrumb { get; set; }
		public string Abbr { get; set; }
		/// <summary>
		/// 是维修部门
		/// </summary>
		public bool IsMaintenance { get; set; }
		public bool Active { get; set; }
		/// <summary>
		/// 分类
		/// </summary>
		public IList<SelectListItem> AvailableDepartments { get; set; }
	}
}